﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demos.DesignPatterns._17_命令模式
{
    public class Light
    {
        public void TurnOn()
        {
            Console.WriteLine("灯打开了");
        }

        public void TurnOff() { 
            Console.WriteLine("灯关了");
        }


    }
}
